package com.gzqylc.docker.extend.auth.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gzqylc.lang.Comment;
import com.gzqylc.lang.web.base.BaseEntitySimple;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * @Desc： 基础用户表
 * @ClassName BaseUser
 * @Author 孔晓文
 * @Date 2022/2/17 下午5:45
 */
@Getter
@Setter
@Entity
@FieldNameConstants
@Table(name = "base_user")
public class BaseUser extends BaseEntitySimple {

    @Comment("用户名")
    String userName;

    @Comment("登录名")
    String loginName;

    @Comment("密码")
    @JsonIgnore
    String passWord;

    /**
     *考虑后面可能用于预警通知等
     */
    @Comment("邮箱地址")
    String emailAddress;

    @Comment("账号状态 true 启用 false停用")
    Boolean status;

    @Comment("最后登录ip")
    String lastLoginIp;

    @Comment("最后登录时间")
    Date lastLoginDate;
}
